<!--
子路由组件,用于加载子路由
加载后并显示遮罩层
-->
<style lang="scss" scoped>
    .mask {
        width: 100%;
        height: 100%;
        position: fixed;
        background: rgba(0, 0, 0, .5);
        top: 0;
        left: 0;
        z-index: 999;
    }
</style>
<script type="text/jsx">
    export default {
        name: 'ui-nest-router',
        render(h) {
            if(this.$route.query.model){
                return (
                    <router-view class="mask"/>
                )
            }else{
                return (
                    <router-view />
                )
            }
        }
    }
</script>
